import request from '@/utils/request'

// 查询安全检查任务附件列表
export function listTaskFile(query) {
  return request({
    url: '/labsafety/taskFile/list',
    method: 'get',
    params: query
  })
}

// 查询安全检查任务附件详细
export function getTaskFile(fileId) {
  return request({
    url: '/labsafety/taskFile/' + fileId,
    method: 'get'
  })
}

// 新增安全检查任务附件
export function addTaskFile(data) {
  return request({
    url: '/labsafety/taskFile',
    method: 'post',
    data: data
  })
}

// 修改安全检查任务附件
export function updateTaskFile(data) {
  return request({
    url: '/labsafety/taskFile',
    method: 'put',
    data: data
  })
}

// 删除安全检查任务附件
export function delTaskFile(fileId) {
  return request({
    url: '/labsafety/taskFile/' + fileId,
    method: 'delete'
  })
}

// 导出安全检查任务附件
export function exportTaskFile(query) {
  return request({
    url: '/labsafety/taskFile/export',
    method: 'get',
    params: query
  })
}